﻿using HtmlAgilityPack;

namespace JoelAbrahamsson.Web.Common.HtmlFiltering
{
    public class SameTagReplacer : IHtmlTagReplacer
    {
        public string ReplaceOpeningTag(HtmlNode node)
        {
            return string.Format("<{0}>", node.Name.ToLower());
        }

        public string ReplaceClosingTag(HtmlNode node)
        {
            return string.Format("</{0}>", node.Name.ToLower());
        }
    }
}